function loadPlayerInfo() {
  $('.append').remove()
  $('#mainContent').append(template('t_playerInfo'))
  $('#mainContent').addClass('bigMainContent')
  $('#messageMain').addClass('litterMessageMain')
  exit()
  request.getPlayer(function(res) {
    player.basicInfo = res.basicInfo
    player.fightAttri = res.fightAttri


    var attriPointPlus, attriPoint
    setPlayerAttriInfo()

    //属性加成
    function calcAttriPoint(attri) {
      var config = templateConfig.character[100001][attri]
      for (var i in config) {
        var txt = $('.' + i).html()
        if (txt.indexOf('%') !== -1) {
          txt = txt.replace('%', '')
          $('.' + i).html(parseFloat(txt) + config[i] + '%')
        } else {
          $('.' + i).html(parseFloat(txt) + config[i])
        }
      }
    }

    function setPlayerAttriInfo() {
      $('.pname').html(player.name)
      $('.lvl').html(player.basicInfo.lvl)
      var exp = templateConfig.total[100001].lvlexp[player.basicInfo.lvl-1]
      $('.exp').html(player.basicInfo.expLvl + '/' + exp)
      $('.stamina').html(player.fightAttri.maxStamina)
      $('.str').html(player.fightAttri.str)
      $('.con').html(player.fightAttri.con)
      $('.agile').html(player.fightAttri.agile)
      $('.wisdom').html(player.fightAttri.wisdom)
      $('.attriPoint').html(player.basicInfo.attriPoint)
      $('.maxHp').html(player.fightAttri.maxHp)
      $('.attack').html(player.fightAttri.attack)
      $('.defend').html(player.fightAttri.defend)
      $('.critRate').html(player.fightAttri.critRate + '%')
      $('.critHurt').html(player.fightAttri.critHurt + '%')
      $('.lucky').html(player.fightAttri.lucky)
      $('.skillRate').html(player.fightAttri.skillRate + '%')
      $('.skillHurtPer').html(player.fightAttri.skillHurtPer + '%')
      $('.ignoreDefend').html(player.fightAttri.ignoreDefend)
      $('.money').html(player.basicInfo.money)
      $('.gold').html(player.basicInfo.gold)
      $('.moneyBuff').html(player.fightAttri.money + '%')
      var skillCon = ''
      if (player.fightAttri.skills.length > 0) {
        for (var i in player.fightAttri.skills) {
           skillCon += '<span class="icon-' + skillsSvgs[player.fightAttri.skills[i]] + '"></span>'
        }
        $('.skill').html(skillCon)
      }else {
        $('.skill').html('')
      }

      attriPointPlus = {
        str: 0,
        con: 0,
        agile: 0,
        wisdom: 0
      }
      attriPoint = parseInt($('.attriPoint').text())

      if (attriPoint <= 0) {
        $('.pointPlus').css('display', 'none')
      }else{
        $('.pointPlus').css('display', 'block')
      }
    }

    $('.resetPlus').css('display', 'none')
    $('.confirmPlus').css('display', 'none')

    $('.pointPlus').click(function() {
      var attri = $(this).attr("value")
      calcAttriPoint(attri)
      var value = parseInt($('.' + attri).text())
      $('.' + attri).text(value + 1)
      attriPointPlus[attri] += 1
      var attriPoint = parseInt($('.attriPoint').text())
      $('.attriPoint').text(attriPoint - 1)
      if (attriPoint === 1) {
        $('.pointPlus').css('display', 'none')
      }

      $('.resetPlus').css('display', 'inline-block')
      $('.confirmPlus').css('display', 'inline-block')
    })


    $('.resetPlus').click(function() {
      loadPlayerInfo()
    })

    $('.confirmPlus').click(function() {
      request.attriPointPlus(attriPointPlus.str, attriPointPlus.con, attriPointPlus.agile, attriPointPlus.wisdom)
    })
  })
}
